package icu.d4peng.cloud.common.http.properties;

import com.alibaba.fastjson.JSON;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2021-12-30 17:04
 * @description HttpConvertProperties:转换属性
 */
public class HttpConvertProperties {
    private HttpConverterItemProperties text;
    private HttpConverterItemProperties json;
    private HttpConverterItemProperties xml;
    private HttpConverterItemProperties binary;
    private HttpConverterItemProperties protobuf;

    public HttpConverterItemProperties getText() {
        return text;
    }

    public void setText(HttpConverterItemProperties text) {
        this.text = text;
    }

    public HttpConverterItemProperties getJson() {
        return json;
    }

    public void setJson(HttpConverterItemProperties json) {
        this.json = json;
    }

    public HttpConverterItemProperties getXml() {
        return xml;
    }

    public void setXml(HttpConverterItemProperties xml) {
        this.xml = xml;
    }

    public HttpConverterItemProperties getBinary() {
        return binary;
    }

    public void setBinary(HttpConverterItemProperties binary) {
        this.binary = binary;
    }

    public HttpConverterItemProperties getProtobuf() {
        return protobuf;
    }

    public void setProtobuf(HttpConverterItemProperties protobuf) {
        this.protobuf = protobuf;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
